//
//  RylbCell.swift
//  Auscultation
//
//  Created by 来 on 2020/12/9.
//

import UIKit

class RylbCell: UICollectionViewCell {
    
    var tx: UIImageView!
    var mz: UILabel!
    var zw: UILabel!
    var yy: UILabel!
    var sj: UILabel!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor.white
        
        tx = UIImageView.init(image: #imageLiteral(resourceName: "zhuanhuan@1.5x"))
        tx.clipsToBounds = true
        tx.layer.cornerRadius = 15
        addSubview(tx)
        tx.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(25)
            make.left.equalToSuperview().offset(17)
            make.width.height.equalTo(30)
        }
        
        mz = UILabel.init()
        mz.text = "来国锋"
        mz.lgf_AddShowAllText()
        mz.font = UIFont.systemFont(ofSize: 15)
        mz.textColor = UIColor.init(lgf_HexString: "222222")
        addSubview(mz)
        mz.snp.makeConstraints { (make) in
            make.centerY.equalTo(tx)
            make.left.equalTo(tx.snp.right).offset(10)
        }
        
        zw = UILabel.init()
        zw.text = ""
        zw.lgf_AddShowAllText()
        zw.font = UIFont.systemFont(ofSize: 12)
        zw.textColor = UIColor.init(lgf_HexString: "8D969D")
        addSubview(zw)
        zw.snp.makeConstraints { (make) in
            make.centerY.equalTo(tx)
            make.right.equalToSuperview().offset(-17)
        }
        
        yy = UILabel.init()
        yy.lgf_AddShowAllText()
        yy.text = ""
        yy.font = UIFont.systemFont(ofSize: 12)
        yy.textColor = UIColor.init(lgf_HexString: "222222")
        addSubview(yy)
        yy.snp.makeConstraints { (make) in
            make.top.equalTo(tx.snp.bottom).offset(15)
            make.left.equalTo(tx)
        }
        
        sj = UILabel.init()
        sj.lgf_AddShowAllText()
        sj.text = ""
        sj.font = UIFont.systemFont(ofSize: 12)
        sj.textColor = UIColor.init(lgf_HexString: "222222")
        addSubview(sj)
        sj.snp.makeConstraints { (make) in
            make.centerY.equalTo(yy)
            make.right.equalTo(zw)
        }
        
        let line3 = UIView.init()
        line3.backgroundColor = UIColor.init(lgf_HexString: "F1F2F4")
        addSubview(line3)
        line3.snp.makeConstraints { (make) in
            make.centerX.bottom.equalToSuperview()
            make.width.equalToSuperview().offset(-34)
            make.height.equalTo(1)
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

